Component({
  externalClasses: ["space"],
  //组件的属性列表
  properties: {
    article: {
      type: Object,
      value: {},
    },
  },
  data: {},
  methods: {
    toDetail() {
      //触发一个组件的事件，参数是文章对象
      this.triggerEvent("toDetail", this.data.article);
    },
  },
});
